<!--{template common/header_simple_start}-->
<link href="static/css/common.css?{VERHASH}" rel="stylesheet" media="all">
<!--[if lt IE 9]>
  <script src="static/js/jquery.placeholder.js" type="text/javascript"></script>
<![endif]-->
<style>
html body {
	overflow: hidden
}
.mainContainer{
	overflow-x:hidden;
	overflow-y:auto;
	position:relative;
	z-index:10;
	background:url(dzz/images/b.gif);
}


.ie8 .modal-content {
	width: 350px;
	margin: 10px;
	position: absolute;
	right: 80px;
	top: 80px;
	z-index: 900;
	left: auto;
	background-color: RGBA(255,255,255,0.9);
}


.form-login .form-group-lg {
	margin-bottom: 20px;
}
.form-login .form-group-lg .form-control {
	padding: 10px 16px;
	height: 46px;
}


</style>

<!--{template common/header_simple_end}-->
<!--{eval $loginhash = 'L'.random(4);}-->
<!--背景层-->

<div class="mainContainer clearfix" >

    <div id="main_message">
      <div id="layer_login_$loginhash" >
        <div class="modal-header" style="border-bottom:1px solid #DDD;" >
          <h4  class="modal-title text-center" ><span id="returnmessage_$loginhash">$_G['setting']['sitename']<!--{if $_G['setting']['bbclosed']>0}--> - $_G['setting']['closedreason']<!--{/if}--> </span></h4>
        </div>
        <div class="modal-body" style="font-size:14px;padding:30px 30px 20px 30px;">
          <form method="post"  name="login " id="loginform_$loginhash" class="form-login"   role="form" onsubmit="{if $this->setting['pwdsafety']}pwmd5('password3_$loginhash');{/if}pwdclear = 1; ajaxpost('loginform_$loginhash', 'returnmessage_$loginhash', 'returnmessage_$loginhash');return false;"  action="user.php?mod=sso&op=login&loginsubmit=yes{if !empty($_GET['handlekey'])}&handlekey=$_GET[handlekey]{/if}{if isset($_GET['frommessage'])}&frommessage{/if}&loginhash=$loginhash"
            <input type="hidden" name="formhash" value="{FORMHASH}" />
            <input type="hidden" name="referer" value="{echo dreferer()}" />
            <!--{if $auth}-->
            <input type="hidden" name="auth" value="$auth" />
            <!--{else}--> 
            <div class="form-group form-group-lg">
              <input type="text" class="form-control" id="email_$loginhash" placeholder="邮箱或用户名" name="email"  autocomplete="off"  >
            </div>
            <div class="form-group form-group-lg">
              <input type="password"  class="form-control " id="password3_$loginhash" placeholder="登录密码" name="password" onfocus="clearpwd()" autocomplete="off"  >
            </div>
            <!--{/if}--> 
            
           
            <div class="form-group form-group-lg" >
              <label class="checlbox checkbox-inline">
                <input type="checkbox"  name="cookietime" id="cookietime_$loginhash"  value="2592000" $cookietimecheck />
                30天内自动登录</label>
              <a class="pull-right" tabindex="-1" href="user.php?mod=login&op=logging&action=lostpasswd">{lang getpassword}</a> </div>
            
            <!--{if $secqaacheck || $seccodecheck}--> 
            <!--{block sectpl}-->
            <sec>
            <sec>
            <sec>
            <!--{/block}-->
            <div class="form-group" style="margin-bottom:20px;"> 
              <!--{template common/seccheck}--> 
            </div>
            <!--{/if}-->
            
            <div class="form-group form-group-lg" >
              <button class="btn btn-primary btn-block btn-lg"  type="submit" name="loginsubmit" value="true" ><strong>登&nbsp;&nbsp;&nbsp;录</strong></button>
              <!-- <!--{if !$this->setting['bbclosed'] && !empty($_GET['inajax'])}--><a class="btn btn-link" href="javascript:;" onclick="ajaxget('user.php?mod=clearcookies&formhash={FORMHASH}', 'returnmessage1_$loginhash', 'returnmessage1_$loginhash');return false;" title="{lang login_clearcookies}" class="pull-right"> <span id="returnmessage1_$loginhash" class="text-muted ">{lang login_clearcookies}</span></a><!--{/if}--> --> </div>
            <!--{if $_G['setting']['regstatus']>0}-->
            <div class="form-group last" style="margin-bottom:" > 还没有帐号？&nbsp;<a  class="" tabindex="-1" href="user.php?mod=register"  <!--{if !empty($_GET['inajax'])}-->onclick="_login.register();return false;"<!--{/if}--> title="$_G['setting']['reglinkname']">$_G['setting']['reglinkname']</a> </div>
            <!--{/if}-->
          </form>
          <!--{if !empty($_G['allow_loginmod']}-->
          <div class="third-login-wraper" style="padding-top:15px;margin-top:15px;border-top:1px solid #DDD;">
            <span class="third-login-header">其他登录：</span>
           <!--{Hook login_mod}-->
          </div>
          <!--{/if}-->
        </div>
        <!--{if $_G['setting']['pwdsafety']}--> 
        <script type="text/javascript" src="static/js/md5.js?{VERHASH}" reload="1"></script> 
        <!--{/if}--> 
      </div>
      
    </div>
    <div class="nfl" id="main_succeed" style="display: none">
            <div class="modal-body">
              <div class="alert_right">
                <div id="succeedmessage"></div>
                <div id="succeedlocation" class="alert_btnleft"></div>
                <p class="alert_btnleft"><a id="succeedmessage_href" href="javascript:;">{lang message_forward}</a></p>
              </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">

var pwdclear = 1;
function initinput_login() {
	document.body.focus();
	<!--{if !$auth}-->
		if(document.getElementById('loginform_$loginhash')) {
			document.getElementById('loginform_$loginhash').email.focus();
		}
	<!--{/if}-->
}

function clearpwd() {
	if(pwdclear) {
		document.getElementById('password3_$loginhash').value = '';
	}
	pwdclear = 0;
}


jQuery(document).ready(function(e) {
	initinput_login();
	
	if(jQuery('.ie8,.ie9').length){ //ie8模拟placeholder;
		jQuery(':input[placeholder]').each(function(){
			jQuery(this).placeholder();
		});
	}
});

</script> 
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script> 

<!--{template common/footer}-->